import request from '@/utils/request'
/**
 * 查询指定模型
 * @param query
 */
export const queryMoldList = (params?: any) => {
  return request({
    url: '/mold/list',
    method: 'get',
    params,
  })
}
/**
 * 创建模型
 * @param query
 */
export const createMold = (data: any) => {
  return request({
    url: '/mold/create',
    method: 'post',
    data,
  })
}

export const updateMold = (data: any) => {
  return request({
    url: '/mold/modify',
    method: 'post',
    data,
  })
}

export const updateMoldCFV = (data: any) => {
  return request({
    url: '/mold/setCustomFieldValue',
    method: 'post',
    data,
  })
}
